package gouroutine

import (
	"fmt"
)

func FirstDemo() {

	go func() {
		for i := 0; i < 10; i++ {
			fmt.Printf("hello goroutin_%d\n", i)
			//time.Sleep(time.Second)
		}
	}()

	for i := 0; i < 10; i++ {
		fmt.Printf("main:hello goroutine_%d\n", i)
		//time.Sleep(time.Millisecond)
	}

	//time.Sleep(5*time.Second)
}
